var mongoose = require('mongoose');
var Schema = mongoose.Schema;

// 定义mongoDB中的collections的文档结构
var productScheme = new Schema({
  "productId": String,
  "productName": String,
  "salePrice": Number,
  "productImage": String,
  "checked":String,
  "productNum":Number
});

module.exports = mongoose.model('Good',productScheme);//通过Model可以实例化出文档对象document之后将其导出
